<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <h1>vue的模板</h1>
    <ul>
      <li v-for="(item,index) in foodList">{{item}}-----{{index}}</li>
    </ul>
  </div>
  <script src="./vue.js"></script>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        foodList: [
          '老北京豆汁',
          '北京烤鸭',
          '东北烤鸡架',
          '烤羊排',
          '烤鸡翅'
        ]
      },
    })
  </script>

</html>